package cn.spike.rockcc.feign;

import cn.spike.rockcc.fallback.CourseFallbackFactory;
import cn.spike.rockcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author:spike
 * @create:2023-03-20 19:05
 */
@FeignClient(value = "service-course",path = "/course",fallbackFactory = CourseFallbackFactory.class)
public interface CourseFeignClient {
    /**
     * 订单页面 - 获取订单信息
     * @param ids
     * @return
     */
    @GetMapping("/orderdata/{ids}")
    JSONResult orderdata(@PathVariable("ids")String ids);
}
